package wangxiaotao.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import wangxiaotao.entity.TreeEntity;

import java.util.List;

/**
 * <p>
 * 资源权限表（目录及功能菜单）
 * </p>
 *
 * @author wang
 * @since 2022-03-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PermissionSimpleVO implements TreeEntity<PermissionSimpleVO> {

    private Integer id;
    /**
     * 资源名称
     */
    private String resourceName;

    /**
     * 父资源id（同表关联，可为空）
     */
    private Integer parentId;


    private List<PermissionSimpleVO> childList;

    public void setChildList(List<PermissionSimpleVO> childList) {
        this.childList = childList;
    }
}
